package com.consumer.handsome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.consumer.handsome.domain.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {
    @Select("select * from t_user where id = #{id}")
    UserEntity selectUser(int id);
    @Select("select * from t_user where username= #{username}")
    UserEntity getUserByUserName(String username);

}
